<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/imgs/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import request from "@/utils/request";

export default {
  name: 'HomeView',
  components: {
    HelloWorld
  },
  created() {
    this.loadUsers()
  },
  methods: {
    loadUsers() {
      request.get('/user/list').then(res => {
        console.log(res.data)
      })
    }
  }
}
</script>
